<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Vote
 * @copyright  Copyright 2011 KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: hint.tpl 2011-03-09 01:11:30 idris $
 * @author     Idris
 */
?>

<div class="left">
	<?php echo $this->htmlLink($this->object->getHref(), $this->objectPhoto($this->object, 'thumb.profile')); ?>
  <br />
  <?php echo $this->objectRate($this->object, true, 'small', false, false); ?>
</div>

<div class="right">
	<div class="info">
		<div class="title">
			<?php echo $this->htmlLink($this->object->getHref(), $this->object->getTitle()); ?>
		</div>
		<div class="clr"></div>
    <?php if ($this->object->getType() == 'user'): ?>
      <?php if ($this->object->authorization()->isAllowed(null, 'view')): ?>
        <div class="desc">
          <?php echo Engine_String::substr($this->object->status, 0, 100); ?>
        </div>
      <?php endif; ?>
    <?php else: ?>
		<?php if ($this->object->getDescription()): ?>
			<div class="desc">
				<?php echo Engine_String::substr(strip_tags($this->object->getDescription()), 0, 100); ?>
			</div>
		<?php endif; ?>
    <?php endif; ?>
		<div class="clr"></div>
		<div class="details">
			<?php echo $this->itemDetails($this->object); ?>
		</div>
		<div class="clr"></div>
	</div>
	<?php if ($this->total): ?>
		<div class="items">
			<div class="count">
				<?php echo $this->translate(array($this->label, $this->label2, $this->total), $this->total, $this->object->getTitle()); ?>
			</div>
			<div class="list">
				<?php $counter = 0; ?>
				<?php foreach($this->items as $item): ?>
					<?php $counter++; ?>
					<div class="item">
						<?php echo $this->htmlLink($item->getHref(), $this->objectPhoto($item, 'thumb.icon', '', array('width' => '22px', 'height' => '22px')), array('class' => 'kow-tip-hint')); ?>
						<div class="kow-tip-text hidden"><?php echo $item->getTitle(); ?></div>
					</div>
					<?php if ($counter > 2) break; ?>
				<?php endforeach; ?>
				<div class="clr"></div>
			</div>
		</div>
	<?php endif; ?>
	<div class="clr"></div>
</div>

<div class="clr"></div>

<div class="options">
	<?php echo $this->itemOptions($this->object); ?>
	<p class="clr"></p>
</div>